package com.cloud.lawcase.api.entity;

import java.util.Date;
import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "tc_access_token")
public class TcAccessToken {
	@Id
	@Column(name = "app_id")
	private String appId;

	@Column(name = "dock_unit")
	private String dockUnit;

	@Column(name = "dock_human")
	private String dockHuman;

	@Column(name = "dock_human_tel")
	private String dockHumanTel;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@Column(name = "enable_date")
	private Date enableDate;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@Column(name = "overdue_date")
	private Date overdueDate;

	@Column(name = "overdue_remind")
	private Integer overdueRemind;

	@Column(name = "token_validity")
	private Integer tokenValidity;

	@Column(name = "refresh_times")
	private Integer refreshTimes;

	@Column(name = "used_refresh_times")
	private Integer usedRefreshTimes;

	@Column(name = "state_id")
	private Integer stateId;

	@Column(name = "state_name")
	private String stateName;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@Column(name = "create_time")
	private Date createTime;

	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@Column(name = "update_time")
	private Date updateTime;

	@Column(name = "app_desc")
	private String appDesc;

	/**
	 * @return app_id
	 */
	public String getAppId() {
		return appId;
	}

	/**
	 * @param appId
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}

	/**
	 * @return app_desc
	 */
	public String getAppDesc() {
		return appDesc;
	}

	/**
	 * @param appDesc
	 */
	public void setAppDesc(String appDesc) {
		this.appDesc = appDesc;
	}

	/**
	 * @return enable_date
	 */
	public Date getEnableDate() {
		return enableDate;
	}

	/**
	 * @param enableDate
	 */
	public void setEnableDate(Date enableDate) {
		this.enableDate = enableDate;
	}

	/**
	 * @return overdue_date
	 */
	public Date getOverdueDate() {
		return overdueDate;
	}

	/**
	 * @param overdueDate
	 */
	public void setOverdueDate(Date overdueDate) {
		this.overdueDate = overdueDate;
	}

	/**
	 * @return overdue_remind
	 */
	public Integer getOverdueRemind() {
		return overdueRemind;
	}

	/**
	 * @param overdueRemind
	 */
	public void setOverdueRemind(Integer overdueRemind) {
		this.overdueRemind = overdueRemind;
	}

	/**
	 * @return token_validity
	 */
	public Integer getTokenValidity() {
		return tokenValidity;
	}

	/**
	 * @param tokenValidity
	 */
	public void setTokenValidity(Integer tokenValidity) {
		this.tokenValidity = tokenValidity;
	}

	/**
	 * @return refresh_times
	 */
	public Integer getRefreshTimes() {
		return refreshTimes;
	}

	/**
	 * @param refreshTimes
	 */
	public void setRefreshTimes(Integer refreshTimes) {
		this.refreshTimes = refreshTimes;
	}

	/**
	 * @return used_refresh_times
	 */
	public Integer getUsedRefreshTimes() {
		return usedRefreshTimes;
	}

	/**
	 * @param usedRefreshTimes
	 */
	public void setUsedRefreshTimes(Integer usedRefreshTimes) {
		this.usedRefreshTimes = usedRefreshTimes;
	}

	/**
	 * @return create_time
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return update_time
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDockUnit() {
		return dockUnit;
	}

	public void setDockUnit(String dockUnit) {
		this.dockUnit = dockUnit;
	}

	public String getDockHuman() {
		return dockHuman;
	}

	public void setDockHuman(String dockHuman) {
		this.dockHuman = dockHuman;
	}

	public String getDockHumanTel() {
		return dockHumanTel;
	}

	public void setDockHumanTel(String dockHumanTel) {
		this.dockHumanTel = dockHumanTel;
	}

	public Integer getStateId() {
		return stateId;
	}

	public void setStateId(Integer stateId) {
		this.stateId = stateId;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

}